<template />

<script lang="ts">
	import { Vue, Component } from "vue-property-decorator";
	import { Storage } from "@/static/libs/utils";

	@Component
	export default class Index extends Vue {
		// component property
		onLoad() {
			uni.showLoading({ title: "Loading...", mask: true });
			uni.reLaunch({
				url: this.$config.page[Storage.get("authorization") ? "home" : "authorization"],
				fail: (err) => uni.showToast({ title: err.errMsg, icon: "none" }),
				success: uni.hideLoading,
			});
		}
	}
</script>

<style lang="scss" scoped>
	// scss
</style>